Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

zig-dev-bin: Automatically update to the latest nightly version #1

Closed

Conversation

Techcable
Copy link

I think auto-updating is a really good idea for a "dev" package.

Right now the package is over 2 months old and 580 commits have changed. I marked this as outdated on the AUR for this reason.

I've suggested two patches in the comments that I have PRed here:

  1. Automatic version updating via pkgver
  2. Fixing the moved docs directory in the newer tarballs

There are advantages and disadvantages to the auto-updating (patch 1). The main advantage is the build is always latest (which makes sense for nightly builds).

The main downside is lack of PGP verification (this is an upstream issue). Sometimes the PKGBUILD could break and require manual intervention (like the fix required by patch 2).

I didn't realize there was a PR repo until recently. Sorry about that.

Downloads directly from https://ziglang.org/download

GPG verification of downloaded files is not currently possible because Zig nightly binaries aren't signed.
See github issue ziglang/zig#4945 for details

Using hardcoded sha256 is also impossible because this is an auto-updating package

Therefore, there is no security beyonnd the basic integrity of a https:// network connection (although that is still some security, you would have to forge a signed  HTTPS certificate to intercept).

This commit also changes the versioning scheme to match
the upstream downloads (and be compatible with the main zig package)
This requires incrementing the "epoch"

This also changes the package to support multiple architectures (both x86_64 and ARM64)
The location in the nightly tarball moved.

This change is required by the new auto-update scheme.
@zhangkaizhao
Copy link
Owner

Hi @Techcable ! Sorry for the delay. I am busy recently. I am glad someone paid attention to this. I have added you to the maintainers of the zig-dev-bin package and you can maintain it now if you are still insterested. I will disown the package on AUR as I am tending to use the release version now. But I think keeping an up-to-date development version should be still a useful thing.

Note: The 0.10.0 release of Zig is coming soon.

@Techcable
Copy link
Author

Thanks for the response @zhangkaizhao . I'd be happy to maintain the package from here (and I totally understand being busy 🙂 )

Note:The zig 0.10.0 release of Zig is coming soon.

Yes! This is very exciting and hopefully this will allow some of us to move off the dev version (though I'm likely to stay until 1.0, and still plan to maintain the package either way).

I guess I'll close this PR and push the commits directly to the AUR?

@Techcable Techcable closed this Sep 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants